package com.ganmingshan.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.time.LocalTime;


@Data
@TableName("emp_sign")
public class SignEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 记录表id
     */
    @TableId(type = IdType.AUTO)
    private Long signId;
    private String name;
    private String department;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime checkin;
    /**
     * 显示状态[0-没迟到；1-迟到]
     */
    private Integer status;
    @TableField(exist = false)
    @DateTimeFormat(pattern = "HH:mm")
    private LocalTime laterTime;
}
